package admin.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @author xf07b1
 * @wechat xf07b1
 * @description
 */
@TableName("token")
@Data
public class Token {
    /**
     * 用户ID
     */
    @TableId(value = "user_id", type = IdType.INPUT)
    private String userId;
    /**
     * token
     */
    @TableField("`value`")
    private String value;

    /**
     * 过期时间
     */
    @TableField("expiration")
    private LocalDateTime expiration;
}
